package org.jberney.wvdexporter.video;

import java.nio.ByteBuffer;

public class WvdFrameTimeStamp {

	public static final long NEXTFILE_TIMESTAMP = 0x454C49465458454EL;

	public static final int LENGTH = 8;

	private long timeStamp;

	public WvdFrameTimeStamp(byte[] headerBytes) {
		ByteBuffer timeStampByteBuffer = ByteBuffer.allocate(8);
		for (int i = 0; i < 8; i++) {
			timeStampByteBuffer.put(headerBytes[7 - i]);
		}
		this.timeStamp = timeStampByteBuffer.getLong(0);
	}

	public long getTimeStamp() {
		return this.timeStamp;
	}

}
